import { defineStore } from "pinia";

export const useGlobalUIStore = defineStore('global-ui', {
  state: () => ({
    showItemsInLocations: true, // 默认显示资产
  }),
  actions: {
    setShowItemsInLocations(value: boolean) {
      this.showItemsInLocations = value;
    },
    toggleShowItemsInLocations() {
      this.showItemsInLocations = !this.showItemsInLocations;
    }
  }
});